<script setup>
import { ref } from "vue";
import axios from "axios";
import { RouterLink, RouterView } from "vue-router";
import { Menu as IconMenu } from "@element-plus/icons-vue";
import OrderList from "../components/OrderList.vue";
</script>

<template>
  <div class="common-layout">
    <el-container>
      <!-- <el-aside width="200px">
        <el-menu
          default-active="1"
          class="el-menu-vertical-demo"
        >
          <el-menu-item index="1">
            <el-icon><icon-menu /></el-icon>
            <RouterLink to="/">首页</RouterLink>
          </el-menu-item>
        </el-menu>
      </el-aside> -->
      <el-container>
        <el-header class="header">
          <img class="logo" src="/logo.png" alt="" />
          <span> 太平联动汽车服务(山西)有限公司 </span>
        </el-header>
        <el-main>
          <OrderList />
        </el-main>
        <!-- <el-footer></el-footer> -->
      </el-container>
    </el-container>
  </div>
</template>

<style scoped>
.common-layout {
  width: 100%;
  height: 100%;
}

.el-menu-vertical-demo {
  height: 100vh;
}
.header {
  height: 80px;
  line-height: 80px;
  text-align: center;
  font-size: 1.2rem;
  color: #303133;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.header span {
  font-weight: 500;
}
.logo {
  width: 40px;
  margin-right: 10px;
}
@media only screen and (max-width: 600px) {
  :deep(.el-main) {
    padding: 20px 0;
  }
}
</style>
